﻿using System.Web.UI.WebControls;

namespace Axial.Proxies
{
	[JSProxy(typeof(Unit))]
	public class UnitProxy
	{
		public string Value { get; protected set; }

		public UnitProxy(string value)
		{
			Value = value;
		}

		public UnitProxy(string value, string type)
		{
			Value = "(" + value + ").toString() + " + type;
		}

		public override string ToString()
		{
			return Value;
		}
	}

	[JSProxy(typeof(System.Nullable<int>))]
	public class NullableIntProxy
	{
		public object Whatever { get; set; }
		public NullableIntProxy(object o)
		{
			Whatever = o;
		}

		public override string ToString()
		{
			return Whatever.ToString();
		}
	}
}
